<!--超级管理员-->
<li th:if="${sysUser.id==0} and  ${mid == 0}">
    <a href="#"><span class="nav-label"><i class="fa fa-cogs"></i>系统管理</span><span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
        <li><a class="J_menuItem" data-index="01" href="/sys/system"><span class="nav-label">部署系统</span></a></li>
        <li><a class="J_menuItem" data-index="02" href="/sys/model"><span class="nav-label">系统模块</span></a></li>
        <li><a class="J_menuItem" data-index="03" href="/sys/resource"><span class="nav-label">模块资源</span></a></li>
    </ul>
</li>
<li th:if="${sysUser.id==0} and  ${mid == 0}">
    <a href="#"><span class="nav-label"><i class="fa fa-users"></i>用户角色</span><span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
        <li><a class="J_menuItem" data-index="04" href="/sys/group"><span class="nav-label">角色管理</span></a></li>
        <li><a class="J_menuItem" data-index="05" href="/sys/user"><span class="nav-label">用户管理</span></a></li>
    </ul>
</li>
<li th:if="${sysUser.id==0} and  ${mid == 0}">
    <a href="#"><span class="nav-label"><i class="fa fa-wrench"></i>系统配置</span><span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
        <li><a class="J_menuItem" data-index="06" href="/sys/auth"><span class="nav-label">系统授权</span></a></li>
        <li><a class="J_menuItem" data-index="07" href="/sys/code"><span class="nav-label">系统字典</span></a></li>
        <li><a class="J_menuItem" data-index="08" href="/sys/config"><span class="nav-label">系统配置</span></a></li>
        <li><a class="J_menuItem" data-index="09" href="/sys/page/config"><span class="nav-label">页面配置</span></a></li>
        <li><a class="J_menuItem" data-index="10" href="/request/mapping"><span class="nav-label">请求列表</span></a></li>
    </ul>
</li>
<!--模块资源信息-->
<li th:each="res:${sysResources}" th:inline="text">
    <a th:if="${res.resUrl == '*'}" href="#">
        <i th:class="${res.resIcon}"></i>
        <span class="nav-label">[[${res.resName}]]</span>
        <span class="fa arrow"></span>
    </a>
    <a th:if="${res.resUrl != '*'}" class="J_menuItem" th:data-index="${res.id}" th:href="${res.resUrl}">
        <i th:class="${res.resIcon}"></i>
        <span class="nav-label">[[${res.resName}]]</span>
    </a>
    <ul th:if="${not #lists.isEmpty(res.childs)}" class="nav nav-second-level">
        <li th:each="res2:${res.childs}">
            <a th:if="${res2.resUrl == '*'}" href="#">
                <i th:class="${res2.resIcon}"></i>
                <span class="nav-label">[[${res2.resName}]]</span>
                <span class="fa arrow"></span>
            </a>
            <a th:if="${res2.resUrl != '*'}" class="J_menuItem" th:data-index="${res2.id}" th:href="${res2.resUrl}">
                <i th:class="${res2.resIcon}"></i>
                <span class="nav-label">[[${res2.resName}]]</span>
            </a>
        </li>
    </ul>
</li>
<!--左侧导航结束-->
<script>
    $(function () {
        $('#side-menu').metisMenu();
        $('.J_menuItem').on('click', menuItem);
        $('.sidebar-collapse').slimScroll({
            height: '100%',
            railOpacity: 0.9,
            alwaysVisible: false
        });
    });
</script>